Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 17 páginas
Examen

D278 ITSW 2113 (Scripting & Programming Foundations) Latest Objective Assessment Review

Document preview thumbnail
Vista previa 3 fuera de 17 páginas

D278 ITSW 2113 (Scripting & Programming Foundations) Latest Objective Assessment ReviewD278 ITSW 2113 (Scripting & Programming Foundations) Latest Objective Assessment ReviewD278 ITSW 2113 (Scripting & Programming Foundations) Latest Objective Assessment Review

Vista previa del contenido

D278 ITSW 2113

Scripting & Programming Foundations


Latest Objective Assessment Review


(With Solutions)



2026




1

,Multiple Choice Questions (MCQs)
You need to automate the deployment of AWS Lambda functions using
Python. Which AWS SDK module allows programmatic creation and
updating of Lambda functions?
a) boto3.lambda
b) boto3.client('lambda')
c) boto3.resource('lambda')
d) boto3.aws_lambda

Answer: b) boto3.client('lambda')
Rationale: The boto3 client interface provides direct access to AWS
Lambda methods like create_function and update_function_code. The
resource interface is not implemented for Lambda.

In a Python script that manages AWS EC2 instances, what is the effect of
using paginators in the boto3 library?
a) They allow you to paginate API responses when there are multiple
pages.
b) They optimize EC2 instance billing.
c) They automate instance updates.
d) They flatten JSON objects from instance metadata.

Answer: a) They allow you to paginate API responses when there are
multiple pages.
Rationale: AWS API calls that return large datasets use pagination.
Paginators help iterate through all results seamlessly.

Which scripting language is most commonly used with AWS
CloudFormation custom resources to add logic and is fully supported by
AWS Lambda?
a) Ruby
b) Python
2

, c) Perl
d) PHP

Answer: b) Python
Rationale: Python is widely used for AWS Lambda and custom resource
scripting due to built-in library support and AWS compatibility.

When scripting AWS CLI commands inside a bash script, which command
syntax ensures the script captures both stdout and stderr for logging?
a) aws ec2 describe-instances > output.log
b) aws ec2 describe-instances 2> error.log
c) aws ec2 describe-instances &> output.log
d) aws ec2 describe-instances 1> output.log & 2> error.log

Answer: c) aws ec2 describe-instances &> output.log
Rationale: The &> redirects both stdout and stderr to the same file,
useful for complete log capture in bash scripts.

To write idempotent infrastructure provisioning scripts for AWS using
Python, which of the following best practice ensures safe repeated
execution?
a) Always delete resources before creating.
b) Use ‘create’ calls only and fail if resource exists.
c) Use ‘describe’ APIs to check for resource existence before
create/update.
d) Use the AWS CLI instead of SDK for scripting.

Answer: c) Use ‘describe’ APIs to check for resource existence before
create/update.
Rationale: Idempotency requires verifying resource state before actions
to avoid duplication or errors.

True/False Questions
True or False: In AWS SDK for Python (boto3), session-based clients
3

Información del documento

Subido en
19 de enero de 2026
Número de páginas
17
Escrito en
2025/2026
Tipo
Examen
Contiene
Desconocido
$18.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Bankart
3.7
(25)
Vendido
174
Seguidores
31
Artículos
4552
Última venta
1 semana hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes