Amazon AWS

AWS Certified Developer – Associate

DVA-C02
Popular

The AWS Certified Developer – Associate (DVA-C02) exam tests your proficiency in developing applications on AWS. It is designed for developers looking to validate their skills in AWS development.

492 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 251–260 of 492

Q251

A company needs to restrict IAM user permissions based on the source IP. Which AWS feature would best accomplish this?

  • A IAM Policies
  • B Security Groups
  • C VPC Peering
  • D Resource-Based Policies
Explanation IAM Policies can include conditions for source IP, whereas Security Groups control instance access.
Q252

What happens when an AWS Lambda function times out?

  • A Automatic retry occurs
  • B Function stops execution
  • C Cold start is initiated
  • D Results are partially returned
Explanation When Lambda times out, execution stops entirely, unlike automatic retries in other services.
Q253

Which service enables serverless event-driven architecture?

  • A Amazon EventBridge
  • B AWS Lambda
  • C Amazon EC2
  • D Amazon RDS
Explanation AWS Lambda allows code execution in response to triggers, unlike the other services which require more management.
Q254

A company needs to ensure its API Gateway can handle a spike in traffic during a major release. Which feature should they utilize?

  • A Provisioned Throughput
  • B Throttling
  • C Caching
  • D API Keys
Explanation Throttling prevents backend services from being overwhelmed by controlling the request rate, while other options don't address traffic spikes directly.
Q255

What happens when you delete an S3 bucket that has versioning enabled?

  • A All versions will be permanently deleted.
  • B The bucket remains and versions exist.
  • C Only latest version is deleted.
  • D Non-current versions can still be accessed.
Explanation Deleting a versioned bucket removes all versions permanently, while other options incorrectly suggest versions persist or are deleted partially.
Q256

Which service allows you to run SQL queries over data in S3?

  • A Amazon Athena
  • B Amazon RDS
  • C AWS Glue
  • D Amazon Redshift
Explanation Amazon Athena enables running SQL queries directly on S3 data; RDS is for relational databases, Glue is for ETL workflows, and Redshift is a data warehouse solution.
Q257

A company needs a managed service to run containerized applications. Which service should they choose?

  • A AWS Lambda
  • B Amazon EC2
  • C Amazon ECS
  • D Amazon S3
Explanation Amazon ECS is a container management service, whereas Lambda is serverless, EC2 is for traditional VM hosting, and S3 is for object storage.
Q258

What happens when a security group rule is removed for an EC2 instance?

  • A Traffic is immediately blocked
  • B Traffic is unaffected until reboot
  • C Instances behind it receive traffic
  • D Only outbound traffic is affected
Explanation Removing a security group rule immediately affects traffic; it doesn't require a reboot, and it only impacts the specific instance and its inbound rules.
Q259

Which service would you use to execute code in response to triggers without managing servers?

  • A AWS Lambda
  • B Amazon EC2
  • C Amazon RDS
  • D Amazon ECS
Explanation AWS Lambda enables serverless execution of code, while EC2 and RDS require server management and ECS is for container orchestration.
Q260

A company needs to ensure that its API Gateway does not expose any unnecessary endpoints. Which practice should they follow?

  • A Enable CORS on the Gateway
  • B Use a dedicated API key
  • C Use resource policies
  • D Define only needed resources
Explanation Defining only needed resources reduces exposure, unlike enabling CORS or using keys which do not secure the API endpoints effectively.