Amazon AWS Certified Developer - Associate DVA-C02 Exam Practice Questions (P. 4)
- Full Access (557 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 #31
A developer has an application that stores data in an Amazon S3 bucket. The application uses an HTTP API to store and retrieve objects. When the PutObject API operation adds objects to the S3 bucket the developer must encrypt these objects at rest by using server-side encryption with Amazon S3 managed keys (SSE-S3).
Which solution will meet this requirement?
Which solution will meet this requirement?
- ACreate an AWS Key Management Service (AWS KMS) key. Assign the KMS key to the S3 bucket.
- BSet the x-amz-server-side-encryption header when invoking the PutObject API operation.Most Voted
- CProvide the encryption key in the HTTP header of every request.
- DApply TLS to encrypt the traffic to the S3 bucket.
Correct Answer:
B
B
send
light_mode
delete
Question #32
A developer needs to perform geographic load testing of an API. The developer must deploy resources to multiple AWS Regions to support the load testing of the API.
How can the developer meet these requirements without additional application code?
How can the developer meet these requirements without additional application code?
- ACreate and deploy an AWS Lambda function in each desired Region. Configure the Lambda function to create a stack from an AWS CloudFormation template in that Region when the function is invoked.
- BCreate an AWS CloudFormation template that defines the load test resources. Use the AWS CLI create-stack-set command to create a stack set in the desired Regions.Most Voted
- CCreate an AWS Systems Manager document that defines the resources. Use the document to create the resources in the desired Regions.
- DCreate an AWS CloudFormation template that defines the load test resources. Use the AWS CLI deploy command to create a stack from the template in each Region.
Correct Answer:
B
B
send
light_mode
delete
Question #33
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider.
How should the developer configure the custom domain for the application?
How should the developer configure the custom domain for the application?
- AImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API. Create a DNS A record for the custom domain.
- BImport the SSL/TLS certificate into CloudFront. Create a DNS CNAME record for the custom domain.
- CImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API. Create a DNS CNAME record for the custom domain.
- DImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region. Create a DNS CNAME record for the custom domain.Most Voted
Correct Answer:
B
B
send
light_mode
delete
Question #34
A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda.
Which AWS service or tool should the developer use to define serverless resources in YAML?
Which AWS service or tool should the developer use to define serverless resources in YAML?
- ACloudFormation serverless intrinsic functions
- BAWS Elastic Beanstalk
- CAWS Serverless Application Model (AWS SAM)Most Voted
- DAWS Cloud Development Kit (AWS CDK)
Correct Answer:
C
C
send
light_mode
delete
Question #35
A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket.
Which set of steps would be necessary to achieve this?
Which set of steps would be necessary to achieve this?
- ACreate an event with Amazon EventBridge that will monitor the S3 bucket and then insert the records into DynamoDB.
- BConfigure an S3 event to invoke an AWS Lambda function that inserts records into DynamoDB.Most Voted
- CCreate an AWS Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
- DCreate a cron job that will run at a scheduled time and insert the records into DynamoDB.
Correct Answer:
B
B
send
light_mode
delete
Question #36
A development team maintains a web application by using a single AWS CloudFormation template. The template defines web servers and an Amazon RDS database. The team uses the Cloud Formation template to deploy the Cloud Formation stack to different environments.
During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future.
Which solutions will meet these requirements? (Choose two.)
During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future.
Which solutions will meet these requirements? (Choose two.)
- AAdd a CloudFormation Deletion Policy attribute with the Retain value to the database resource.Most Voted
- BUpdate the CloudFormation stack policy to prevent updates to the database.Most Voted
- CModify the database to use a Multi-AZ deployment.
- DCreate a CloudFormation stack set for the web application and database deployments.
- EAdd a Cloud Formation DeletionPolicy attribute with the Retain value to the stack.
Correct Answer:
AD
AD
send
light_mode
delete
Question #37
A company has an Amazon S3 bucket that contains sensitive data. The data must be encrypted in transit and at rest. The company encrypts the data in the S3 bucket by using an AWS Key Management Service (AWS KMS) key. A developer needs to grant several other AWS accounts the permission to use the S3 GetObject operation to retrieve the data from the S3 bucket.
How can the developer enforce that all requests to retrieve the data provide encryption in transit?
How can the developer enforce that all requests to retrieve the data provide encryption in transit?
- ADefine a resource-based policy on the S3 bucket to deny access when a request meets the condition “aws:SecureTransport”: “false”.Most Voted
- BDefine a resource-based policy on the S3 bucket to allow access when a request meets the condition “aws:SecureTransport”: “false”.
- CDefine a role-based policy on the other accounts' roles to deny access when a request meets the condition of “aws:SecureTransport”: “false”.
- DDefine a resource-based policy on the KMS key to deny access when a request meets the condition of “aws:SecureTransport”: “false”.
Correct Answer:
A
A
send
light_mode
delete
Question #38
An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays a table to the user. During testing, a developer discovers that the application does not show any objects in the list.
What is the MOST secure way to resolve this issue?
What is the MOST secure way to resolve this issue?
- AUpdate the IAM instance profile that is attached to the EC2 instance to include the S3:* permission for the S3 bucket.
- BUpdate the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket permission for the S3 bucket.Most Voted
- CUpdate the developer's user permissions to include the S3:ListBucket permission for the S3 bucket.
- DUpdate the S3 bucket policy by including the S3:ListBucket permission and by setting the Principal element to specify the account number of the EC2 instance.
Correct Answer:
B
B
send
light_mode
delete
Question #39
A company is planning to securely manage one-time fixed license keys in AWS. The company's development team needs to access the license keys in automaton scripts that run in Amazon EC2 instances and in AWS CloudFormation stacks.
Which solution will meet these requirements MOST cost-effectively?
Which solution will meet these requirements MOST cost-effectively?
- AAmazon S3 with encrypted files prefixed with “config”
- BAWS Secrets Manager secrets with a tag that is named SecretString
- CAWS Systems Manager Parameter Store SecureString parametersMost Voted
- DCloudFormation NoEcho parameters
Correct Answer:
C
C
send
light_mode
delete
Question #40
A company has deployed infrastructure on AWS. A development team wants to create an AWS Lambda function that will retrieve data from an Amazon Aurora database. The Amazon Aurora database is in a private subnet in company's VPC. The VPC is named VPC1. The data is relational in nature. The Lambda function needs to access the data securely.
Which solution will meet these requirements?
Which solution will meet these requirements?
- ACreate the Lambda function. Configure VPC1 access for the function. Attach a security group named SG1 to both the Lambda function and the database. Configure the security group inbound and outbound rules to allow TCP traffic on Port 3306.Most Voted
- BCreate and launch a Lambda function in a new public subnet that is in a new VPC named VPC2. Create a peering connection between VPC1 and VPC2.
- CCreate the Lambda function. Configure VPC1 access for the function. Assign a security group named SG1 to the Lambda function. Assign a second security group named SG2 to the database. Add an inbound rule to SG1 to allow TCP traffic from Port 3306.
- DExport the data from the Aurora database to Amazon S3. Create and launch a Lambda function in VPC1. Configure the Lambda function query the data from Amazon S3.
Correct Answer:
B
B
send
light_mode
delete
All Pages