Infosys Certified Dotnet Core Web API Developer
Practice with real exam-pattern questions for Infosys Certified Dotnet Core Web API Developer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified Dotnet Core Web API Developer practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified Dotnet Core Web API Developer certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
John and Peter have written a Web API method to update PhoneNumber.
John says HttpPut attribute should be used to update any value.
Peter says HttpHead attribute can also be used.
Which of the given statement is correct?
- ✓Only John’s statement is correct.Correct
- BOnly Peter’s statement is correct.
- CNone of the statement is correct.
- DBoth the statements are correct.
- Question 2
John and Peter have written a Web API method to remove Employee details.
John says HttpRemove attribute can also be used to remove any value.
Peter says HttpDelete attribute is used to remove any value.
Which of the given statement is correct?
- ✓Only John’s statement is correct.Correct
- BOnly Peter’s statement is correct.
- CNone of the statement is correct.
- DBoth the statements are correct.
- Question 3
Jay handles the website work for a college. Few new professors have joined the college recently and he wants those employee details to be added to the existing college database. Which of the following Http verb is the appropriate one to be used while creating service methods using ASP.NET Web API for the above mentioned scenario?
- ✓HttpPutCorrect
- BHttpPost
- CHttpGet
- DHttpDelete
- Question 4
James wants to create a service method to expose the details of all the employees present in the database as a list. Which of the following Http verb best suits this scenario?
- ✓HttpPutCorrect
- BHttpPost
- CHttpGet
- DHttpDelete
- Question 5
You are designing an ASP.NET Core Web API for a social media application. You need to select an appropriate HTTP verb for a method which will allow the app users to share a new picture to their account. Which HTTP verb will you use?
- ✓HttpGetCorrect
- BHttpPost
- CHttpPut
- DHttpDelete
- Question 6
Identify the type of routing used in the following code
[HttpGet("Employee/{name:alpha}")] public string FetchDetails(string name) { return name +" is employee."; }- ✓Attribute routingCorrect
- BConvention-based routing
- CHierarchical routing
- DMixed routing
- Question 7
Peter has implemented a Web API method which is used to fetch a list of values based on user input. Which of the following HTTP verb is appropriate for the given scenario?
- ✓[HttpDelete]Correct
- B[HttpHead]
- C[HttpGet]
- D[HttpPost]
- Question 8
Which of the below option will display the output as “Movie One”?
namespace RoutingDemoWebAPI.Controllers { [Route("api/[controller]/[action]")] [ApiController] public class MoviesController : Controller { [HttpGet] public string GetMovies() { return "Movie One"; } } }- ✓https://localhost:44378/api/MoviesCorrect
- Bhttps://localhost:44378/api/MoviesController
- Chttps://localhost:44378/api/GetMovies
- Dhttps://localhost:44378/api/Movies/GetMovies
- Question 9
Consider the following code:
[Route("api/[controller]")] [ApiController] public class UserController : Controller { [HttpGet] public string MethodOne() { return "Method One"; } [HttpGet] public string MethodTwo() { return "Method Two"; } }What will be the output obtained while invoking the URL : https://localhost:44378/api/user
- ✓AmbiguousActionException: Multiple actions matchedCorrect
- BMethod One
- CThis localhost page cannot be found
- DMethod Two
- Question 10
Which of the following statements are true about the following UseEndpoints() method in conventional way of routing? (Choose any 2)
app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "api/{controller=Guest}/{action=GetAllGuestDetails}", defaults: new { controller = "Guest", action = "GetAllGuestDetails" }); });- ✓The ‘pattern’ refers to the URL pattern which will be matched for an incoming request to the APICorrect
- BThe ‘name’ refers to the name of the default controller which will be used for a request
- CThe ‘pattern’ must contain the keyword ‘api’ before the controller and action name
- DThe ‘defaults’ contains the default values for route parameters
More in Microsoft
Infosys Certified Dynamics 365 ERP Fundamentals
Infosys Certified MS SQL Server Developer
Infosys certified Microsoft Azure Cloud Native Application Developer
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.