Amazon AWS Certified Developer Associate Exam Practice Questions (P. 3)
- Full Access (443 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
A developer needs to write an AWS CloudFormation template on a local machine and deploy a CloudFormation stack to AWS.
What must the developer do to complete these tasks?
What must the developer do to complete these tasks?
- AInstall the AWS CLI. Configure the AWS CLI by using an IAM user name and password.
- BInstall the AWS CLI. Configure the AWS CLI by using an SSH key.
- CInstall the AWS CLI. Configure the AWS CLI by using an IAM user access key and secret key.Most Voted
- DInstall an AWS software development kit (SDK). Configure the SDK by using an X.509 certificate.
Correct Answer:
C
C
send
light_mode
delete
Question #22
A developer is working on a web application that runs on Amazon Elastic Container Service (Amazon ECS) and uses an Amazon DynamoDB table to store data.
The application performs a large number of read requests against a small set of the table data.
How can the developer improve the performance of these requests? (Choose two.)
The application performs a large number of read requests against a small set of the table data.
How can the developer improve the performance of these requests? (Choose two.)
- ACreate an Amazon ElastiCache cluster. Configure the application to cache data in the cluster.
- BCreate a DynamoDB Accelerator (DAX) cluster. Configure the application to use the DAX cluster for DynamoDB requests.Most Voted
- CConfigure the application to make strongly consistent read requests against the DynamoDB table.
- DIncrease the read capacity of the DynamoDB table.
- EEnable DynamoDB adaptive capacity.
Correct Answer:
B
B
send
light_mode
delete
Question #23
A developer needs to use Amazon DynamoDB to store customer orders. The developer's company requires all customer data to be encrypted at rest with a key that the company generates.
What should the developer do to meet these requirements?
What should the developer do to meet these requirements?
- ACreate the DynamoDB table with encryption set to None. Code the application to use the key to decrypt the data when the application reads from the table. Code the application to use the key to encrypt the data when the application writes to the table.
- BStore the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS customer managed key during creation of the DynamoDB table. Provide the Amazon Resource Name (ARN) of the AWS KMS key.Most Voted
- CStore the key by using AWS Key Management Service (AWS KMS). Create the DynamoDB table with default encryption. Include the kms:Encrypt parameter with the Amazon Resource Name (ARN) of the AWS KMS key when using the DynamoDB software development kit (SDK).
- DStore the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS AWS managed key during creation of the DynamoDB table. Provide the Amazon Resource Name (ARN) of the AWS KMS key.
Correct Answer:
B
B
send
light_mode
delete
Question #24
A developer is creating a solution to track an account's Amazon S3 buckets over time. The developer has created an AWS Lambda function that will run on a schedule. The function will list the account's S3 buckets and will store the list in an Amazon DynamoDB table. The developer receives a permissions error when the developer runs the function with the AWSLambdaBasicExecutionRole AWS managed policy.
Which combination of permissions should the developer use to resolve this error? (Choose two.)
Which combination of permissions should the developer use to resolve this error? (Choose two.)
- ACross-account IAM role
- BPermission for the Lambda function to list buckets in Amazon S3Most Voted
- CPermission for the Lambda function to write in DynamoDBMost Voted
- DPermission for Amazon S3 to invoke the Lambda function
- EPermission for DynamoDB to invoke the Lambda function
Correct Answer:
BC
BC
send
light_mode
delete
Question #25
A company is adding items to an Amazon DynamoDB table from an AWS Lambda function that is written in Python. A developer needs to implement a solution that inserts records in the DynamoDB table and performs automatic retry when the insert fails.
Which solution meets these requirements with MINIMUM code changes?
Which solution meets these requirements with MINIMUM code changes?
- AConfigure the Python code to run the AWS CLI through shell to call the PutItem operation
- BCall the PutItem operation from Python by using the DynamoDB HTTP API
- CQueue the items in AWS Glue, which will put them into the DynamoDB table
- DUse the AWS software development kit (SDK) for Python (boto3) to call the PutItem operationMost Voted
Correct Answer:
D
Reference:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.Python.html
D
Reference:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.Python.html
send
light_mode
delete
Question #26
A developer is writing an AWS Lambda function. The developer wants to log key events that occur during the Lambda function and include a unique identifier to associate the events with a specific function invocation.
Which of the following will help the developer accomplish this objective?
Which of the following will help the developer accomplish this objective?
- AObtain the request identifier from the Lambda context object. Architect the application to write logs to the console.Most Voted
- BObtain the request identifier from the Lambda event object. Architect the application to write logs to a file.
- CObtain the request identifier from the Lambda event object. Architect the application to write logs to the console.
- DObtain the request identifier from the Lambda context object. Architect the application to write logs to a file.
Correct Answer:
A
A
send
light_mode
delete
Question #27
A company experienced partial downtime during the last deployment of a new application. AWS Elastic Beanstalk split the environment's Amazon EC2 instances into batches and deployed a new version one batch at a time after taking them out of service. Therefore, full capacity was not maintained during deployment.
The developer plans to release a new version of the application, and is looking for a policy that will maintain full capacity and minimize the impact of the failed deployment.
Which deployment policy should the developer use?
The developer plans to release a new version of the application, and is looking for a policy that will maintain full capacity and minimize the impact of the failed deployment.
Which deployment policy should the developer use?
- AImmutableMost Voted
- BAll at Once
- CRolling
- DRolling with an Additional Batch
Correct Answer:
D
Reference:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
D
Reference:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
send
light_mode
delete
Question #28
A company is providing services to many downstream consumers. Each consumer may connect to one or more services. This has resulted in a complex architecture that is difficult to manage and does not scale well. The company needs a single interface to manage these services to consumers.
Which AWS service should be used to refactor this architecture?
Which AWS service should be used to refactor this architecture?
send
light_mode
delete
Question #29
When a Developer tries to run an AWS CodeBuild project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters.
What is the recommended solution?
What is the recommended solution?
- AAdd the export LC_ALL=ג€en_US.utf8ג€ command to the pre_build section to ensure POSIX localization.
- BUse Amazon Cognito to store key-value pairs for large numbers of environment variables.
- CUpdate the settings for the build project to use an Amazon S3 bucket for large numbers of environment variables.
- DUse AWS Systems Manager Parameter Store to store large numbers of environment variables.Most Voted
Correct Answer:
D
Reference:
https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html
D
Reference:
https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html
send
light_mode
delete
Question #30
A Development team decides to adopt a continuous integration/continuous delivery (CI/CD) process using AWS CodePipeline and AWS CodeCommit for a new application. However, management wants a person to review and approve the code before it is deployed to production.
How can the Development team add a manual approver to the CI/CD pipeline?
How can the Development team add a manual approver to the CI/CD pipeline?
- AUse AWS SES to send an email to approvers when their action is required. Develop a simple application that allows approvers to accept or reject a build. Invoke an AWS Lambda function to advance the pipeline when a build is accepted.
- BIf approved, add an approved tag when pushing changes to the CodeCommit repository. CodePipeline will proceed to build and deploy approved commits without interruption.
- CAdd an approval step to CodeCommit. Commits will not be saved until approved.
- DAdd an approval action to the pipeline. Configure the approval action to publish to an Amazon SNS topic when approval is required. The pipeline execution will stop and wait for an approval.Most Voted
Correct Answer:
D
Reference:
https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-action-add.html
D
Reference:
https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-action-add.html
send
light_mode
delete
All Pages