Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

Development-Lifecycle-and-Deployment-Architect Practice Test


Page 12 out of 46 Pages

A developer on the Universal Containers team has written a test class to test a method that involves a web service callout. Within the test class, the developer is supposed to load test data, create an instance of the Mock object, set the Test.setMock() to that Mock object, call startTest(), execute the code that makes the callout, call stopTest(), and compare the result with expectations. Unfortunately, the Developer forgot to use the Test.setMock() method step. What would happen when the developer runs this test class?


A. The test class fails without error message since the test class will simply skip the webservice callout during the execution.


B. The test class fails and the developer will see a message stating: Methods defined asTestMethod do not support Web service callouts.


C. The test class would make the web service callout and may or may not fail depending on the circumstances on the web service end


D. It is impossible to miss the Test.setMock() statement, the Developer Console will not let the developer save it since the test method callout





B.
  The test class fails and the developer will see a message stating: Methods defined asTestMethod do not support Web service callouts.

Explanation:

The test class will fail and the developer will see a message stating: Methods defined as TestMethod do not support Web service callouts. This is because the test class cannot make a real web service callout, as it would depend on an external service that may not be available or reliable. Therefore, the developer needs to use the Test.setMock() method to specify a mock class that simulates the web service response. The test class will not skip the web service callout, nor will it make the actual callout. It is possible to save the test class without the Test.setMock() statement, but it will not run successfully.

Universal Containers wants to implement a release strategy with major releases every four weeks and minor releases every week. Major releases follow the Development, System Testing (SIT), User Acceptance Testing (UAT), and Training Minor releases follow Development and User Acceptance Testing (UAT) stages. What represents a valid environment strategy consideration for UAT?


A. Minor releases use Partial copy and Major releases use Full copy


B. Minor and Major releases use separate Developer pro


C. Minor releases use Developer and Major releases Full copy


D. Minor and Major releases use the same Full copy.





D.
  Minor and Major releases use the same Full copy.

Explanation:

Minor and Major releases should use the same Full copy sandbox for UAT, as this will ensure that the testing environment is consistent and has the same data and configuration as the production org.

Universal Containers has three types of releases in their release management strategy: daily, minor (monthly), and major (quarterly). A user has requested a new report to support an urgent client request. What release strategy would an Architect recommend?


A. Utilize the major release process to create the report directly in production bypassing the full sandbox.


B. Utilize the minor release process to create the report directly in production bypassing the full sandbox.


C. Utilize the major release process to create the report in a full sandbox and then deploy it to production.


D. Utilize the daily release process to create the report directly in a full sandbox and then deploy it to production.





D.
  Utilize the daily release process to create the report directly in a full sandbox and then deploy it to production.

Explanation:

The daily release process is the most suitable for creating a new report to support an urgent client request, as it can deliver the functionality in a timely manner. Creating the report in a full sandbox and then deploying it to production can ensure the quality and security of the report.

At any given time, Universal Containers has 10 Apex developers building new functionality and fixing bugs. Which branching strategy should an Architect recommend that mitigates the risk of developers overwriting others changes?


A. Have all developers build new functionality in new branches, but fix bugs in the HEAD


B. Have all developers work in the same branch, continuously testing for regressions


C. Have developers work in separate branches and merge their changes in a common branch for testing


D. Don't use source control. Rely on Salesforce's built-in conflict detection mechanism





C.
  Have developers work in separate branches and merge their changes in a common branch for testing

Explanation:

This is the correct answer because having developers work in separate branches and merge their changes in a common branch for testing can reduce the risk of overwriting others’ changes and ensure code quality and consistency. Having all developers work in the same branch or in the HEAD may cause conflicts and errors. Not using source control is not a good practice and may result in data loss and lack of version control.

Universal Containers is working on the next phase of development for their Salesforce implementation involving a large amount of custom development. Which two strategies should be considered to address a critical production issue occurring in the middle of development? Choose 2 answers


A. Create separate branches for current development and production bug fixes and deploy the fix with current development when ready


B. Utilize one branch for both development and production bug fixes to avoid out-of-sync branches and simplify deployment


C. Utilize a source control system to allow separate branches for current development and production bug fixes


D. Refresh a sandbox for replication of the issue and testing the use -case scenarios once the code is fixed





C.
  Utilize a source control system to allow separate branches for current development and production bug fixes

D.
  Refresh a sandbox for replication of the issue and testing the use -case scenarios once the code is fixed

Explanation:

C and D are the correct answers, as they are the best strategies to address a critical production issue occurring in the middle of development. C is correct, as using a source control system to allow separate branches for current development and production bug fixes can help to isolate the changes and avoid conflicts or overwriting. D is correct, as refreshing a sandbox for replication of the issue and testing the use-case scenarios once the code is fixed can help to ensure the quality and functionality of the solution before deploying it to production. A is incorrect, as creating separate branches for current development and production bug fixes and deploying the fix with current development when ready can delay the resolution of the production issue and introduce new risks or errors. B is incorrect, as utilizing one branch for both development and production bug fixes to avoid out-of-sync branches and simplify deployment can create confusion and complexity in the code and make it harder to test and validate. You can learn more about these strategies in the Application Lifecycle and Deployment module on Trailhead.


Page 12 out of 46 Pages
Previous