nerdexam
CompTIA

CV0-004 · Question #2

A developer is testing code that will be used to deploy a web farm in a public cloud. The main code block is a function to create a load balancer and a loop to create 1,000 web servers, as shown…

The correct answer is A. Request an increase of Instance quota. The developer should request an increase of the instance quota from the cloud provider. Cloud services often have a limit on the number of instances that can be created, which is known as an instance quota. If the load balancer is successfully created but the number of web…

Troubleshooting

Question

A developer is testing code that will be used to deploy a web farm in a public cloud. The main code block is a function to create a load balancer and a loop to create 1,000 web servers, as shown below:

The developer runs the code against the company’s cloud account and observes that the load balancer is successfully created, but only 100 web servers have been created. Which of the following should the developer do to fix this issue?

Options

  • ARequest an increase of Instance quota.
  • BRun the code multiple times until all servers are created.
  • CCheck the my_web_server () function to ensure it is using the right credentials.
  • DPlace the my_load_balancer () function after the loop.

How the community answered

(36 responses)
  • A
    75% (27)
  • B
    14% (5)
  • C
    3% (1)
  • D
    8% (3)

Explanation

The developer should request an increase of the instance quota from the cloud provider. Cloud services often have a limit on the number of instances that can be created, which is known as an instance quota. If the load balancer is successfully created but the number of web servers is limited to 100, it suggests that the quota has been reached. Increasing the quota will allow the creation of additional web server instances up to the desired number.

Topics

#Cloud resource limits#Instance quotas#Deployment failure#Troubleshooting cloud resources

Community Discussion

No community discussion yet for this question.

Full CV0-004 Practice